﻿using System;
using System.IO;

namespace UniqueNumberListGenerator
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("How many unique numbers did you want to produce?");
            string num = Console.ReadLine();
            int count;
            bool passed = Int32.TryParse(num, out count);
            if (passed && count > 0)
            {
                StreamWriter file = new StreamWriter(count + "UniqueNumbers.txt", true);
                for (int i = 1; i <= count; i++)
                {
                    file.WriteLine(i + "");
                }
                file.Close();
            }
        }
    }
}
